/** When your routing table is too long, you can split it into small modules**/
import Layout from '@/views/layout/Layout'

const echartsRouter = {
  path: '/echarts',
  component: Layout,
  redirect: 'noredirect',
  name: 'Echarts',
  meta: {
    title: 'echarts',
    icon: 'chart'
  },
  children: [
    {
      path: 'stack',
      component: () => import('@/views/echarts/stack'),
      name: 'stack',
      meta: {
        title: 'stack',
        noCache: true
      }
    }, {
      path: 'liquidFill',
      component: () => import('@/views/echarts/liquidFill'),
      name: 'liquidFill',
      meta: {
        title: 'liquidFillChart',
        noCache: true
      }
    }, {
      path: 'gauge',
      component: () => import('@/views/echarts/gauge'),
      name: 'gauge',
      meta: {
        title: 'gaugeChart',
        noCache: true
      }
    },
    {
      path: 'pie',
      component: () => import('@/views/echarts/pie'),
      name: 'pie',
      meta: {
        title: 'pieChart',
        noCache: true
      }
    },
    {
      path: 'pie2',
      component: () => import('@/views/echarts/pie2'),
      name: 'pieChart2',
      meta: {
        title: 'pieChart2',
        noCache: true
      }
    },
    {
      path: 'line',
      component: () => import('@/views/echarts/line'),
      name: 'line',
      meta: {
        title: 'lineChart',
        noCache: true
      }
    },
    {
      path: 'radar',
      component: () => import('@/views/echarts/radar'),
      name: 'radar',
      meta: {
        title: 'radarChart',
        noCache: true
      }
    },
    {
      path: 'funnel',
      component: () => import('@/views/echarts/funnel'),
      name: 'funnel',
      meta: {
        title: 'funnelChart',
        noCache: true
      }
    },
    {
      path: 'lines',
      component: () => import('@/views/echarts/lines'),
      name: 'lines',
      meta: {
        title: 'linesChart',
        noCache: true
      }
    },
    {
      path: 'map',
      component: () => import('@/views/echarts/map'),
      name: 'chinaMap',
      meta: {
        title: 'chinaMap',
        noCache: true
      }
    }
  ]

}

export default echartsRouter
